package cn.yuxiaoyuan.article.dao;

import cn.yuxiaoyuan.article.mongo.Comment;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommentRepository extends MongoRepository<Comment,String> {
    //语法匹配规则
    List<Comment> findByArticleId(Long id);
}
